home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / msdos / tbox14.zip / UTILS.DOC < prev    next >
Text File  |  1993-11-14  |  101KB  |  2,265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                              BINARY TOOLSHED
  10.  
  11.  
  12.  
  13.  
  14.                                  UTILITIES
  15.  
  16.  
  17.  
  18.  
  19.                                 USER MANUAL
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                             *
  31.                           *   *
  32.                         *       *
  33.                       *           *               The
  34.                     *               *
  35.                   *                   *           Binary
  36.                  *                     *
  37.                  *                     *          Toolshed
  38.                  *                     *
  39.                  *                     *
  40.                  *  ******             *
  41.                  *        *            *          V1.4
  42.                  *        *            *
  43.                  *        *            *          November 14, 1993
  44.                  *        *            *
  45.                  *        *            *
  46.                   ********             *
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.                              TABLE OF CONTENTS
  56.  
  57.     1.0 INTRODUCTION......................................................1
  58.     1.1 General...........................................................1
  59.     1.2 System Requirements and Installation..............................2
  60.     1.3 Other Manuals.....................................................3
  61.  
  62.     2.0 BTSPATCH..........................................................4
  63.  
  64.     3.0 DIRS..............................................................6
  65.  
  66.     4.0 DRIVES............................................................9
  67.  
  68.     5.0 MAKEBAT..........................................................11
  69.  
  70.     6.0 ONPATH...........................................................14
  71.  
  72.     7.0 TOASCII..........................................................15
  73.  
  74.     8.0 TREE.............................................................16
  75.  
  76.     9.0 VIEW.............................................................24
  77.  
  78.     10.0 WI..............................................................32
  79.  
  80.  
  81.     APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY.................38
  82.  
  83.  
  84. BTS Utilities User Manual                                            Page 1
  85. ___________________________________________________________________________
  86.  
  87.  
  88.  
  89. 1.0 INTRODUCTION
  90.  
  91. 1.1 General
  92.  
  93.     This manual describes a number of utility programs that are available
  94.     from The Binary Toolshed (BTS).  They accomplish a variety of
  95.     functions, many of which are not available through DOS or elsewhere.
  96.     While these programs can be used in conjunction with the ToolBOX and
  97.     TBOXCFG programs, they are independent and are capable of being used on
  98.     their own.
  99.  
  100.     The utility programs, are:
  101.  
  102.            BTSPATCH Provides the capability to set the default command line
  103.                     arguments for all Binary Toolshed programs.
  104.  
  105.           DIRS      Displays disk space utilization for directory branches.
  106.                     It produces the cumulative totals for a directory and
  107.                     all of its descendants.
  108.  
  109.            DRIVES   Displays disk drive parameters for all assigned drives.
  110.                     The presentation includes drive types, volume names,
  111.                     capacities, and free space available.
  112.  
  113.            MAKEBAT  Creates batch files based on a template data file and a
  114.                     file match specification for applicable files.
  115.  
  116.            ONPATH   Determines if specified files are accessible through
  117.                     the DOS PATH variable.
  118.  
  119.            TOASCII  Converts text files that use the extended IBM PC
  120.                     character set to use the standard 95 printable ASCII
  121.                     characters.
  122.  
  123.            TREE     Graphically displays the directory structure.  The user
  124.                     can  cursor through this structure to change director-
  125.                     ies or examine files.
  126.  
  127.            VIEW     Displays the contents of text files for viewing or
  128.                     browsing.
  129.  
  130.            WI       A 'WhereIs' program.  Finds specified files wherever
  131.                     they are located on the disk drive(s), and optionally
  132.                     carries out an operation on those files.
  133.  
  134.  
  135.  
  136.     These utilities are described in detail, starting alphabetically in
  137.     Section 2.0.
  138.  
  139.     The VIEW program can be used to examine the contents of this document.
  140.     If your current printer does not support line drawing and other
  141.     extended characters, use the TOASCII program to make a version of this
  142.     document that is compatible with your printer.
  143. BTS Utilities User Manual                                            Page 2
  144. ___________________________________________________________________________
  145.  
  146.  
  147.  
  148.     Refer to the BTS General Product Overview Manual for a description of
  149.     conventions that are common to all BTS program products, including the
  150.     utilities.  The manual also contains a glossary of the terms and
  151.     documentation conventions that are used throughout The Binary Toolshed
  152.     manuals.
  153.  
  154.  
  155.  
  156. 1.2 System Requirements and Installation
  157.  
  158.  
  159.     Refer to the BTS General Product Overview Manual for a more detailed
  160.     description of the system requirements and installation procedures.
  161.  
  162.  
  163.     System requirements:
  164.  
  165.           o    any DOS version, 3.0 through 5.0
  166.  
  167.           o    any video card - MDA, CGA, EGA, or VGA
  168.  
  169.  
  170.     Installation procedure:
  171.  
  172.           o    copy each of the utilities to a directory on the PATH.
  173.  
  174.           o    it may be advantageous to move the data file that is
  175.                created the first time the TREE program is run.  Refer to
  176.                the TREE documentation in Section 8.
  177.  
  178.           o    use the BTSPATCH and TBOXCFG programs to personalize the
  179.                operation of each program as desired.
  180.  
  181.  
  182.  
  183. BTS Utilities User Manual                                            Page 3
  184. ___________________________________________________________________________
  185.  
  186.  
  187. 1.3 Other Manuals
  188.  
  189.      For additional information, refer to:
  190.  
  191.           STRTHERE.DOC   Quick summary of the BTS program capabilities.
  192.  
  193.           ORDRINFO.DOC   Product support information - a description of the
  194.                          shareware concept, when to register and the
  195.                          advantages in doing so, warranty and support
  196.                          terms, and site license prices.
  197.  
  198.           GENERAL.DOC    Information that is common to all of the Binary
  199.                          Toolshed products; including packing information,
  200.                          installation, common program conventions, setup
  201.                          instructions for the sample datafiles provided, a
  202.                          glossary of applicable terms, and a series of
  203.                          questions and answers for many of the issues that
  204.                          arise during operation of the Binary Toolshed
  205.                          products.
  206.  
  207.           TBOX.DOC       User Manual for the main ToolBOX shell program.
  208.  
  209.           TBOXCFG.DOC    User Manual for the TBOXCFG configuration program.
  210.                          This program produces configuration files that are
  211.                          used by the ToolBOX program, as well as to a
  212.                          lesser extent the VIEW and TREE utilities.
  213.  
  214. BTS Utilities User Manual                                 (BTSPATCH) Page 4
  215. ___________________________________________________________________________
  216.  
  217.  
  218. 2.0 BTSPATCH                                                           V1.4
  219. ___________________________________________________________________________
  220.  
  221.     PURPOSE:   Inserts a default set of command line arguments into any of
  222.                the Binary Toolshed programs.
  223.  
  224.  
  225.     USAGE:     btspatch progName [=progName_argument_list]
  226.  
  227.                where:
  228.  
  229.                     progName  BTS program to be patched.  The.exe extension
  230.                               is assumed.
  231.  
  232.                     =progName_argument_list
  233.                               the arguments to be used as the default
  234.                               settings for progName.
  235.  
  236.  
  237.     SUMMARY:   The utility program inserts (patches) the text after the
  238.                equal sign directly into the specified program - this must
  239.                be a Binary Toolshed program.  The arguments are stored as
  240.                entered, no validation is performed.  The effective result
  241.                is that these programs operate as if this text was entered
  242.                at the start of their command line each time the program is
  243.                executed.
  244.  
  245.                BTSPATCH displays:
  246.                     o the Binary Toolshed program name and version number
  247.                     o the previously stored argument settings
  248.                     o the new settings that are being inserted
  249.  
  250.                If the =progName_argument_list is omitted, BTSPATCH just
  251.                displays the previously existing settings.
  252.  
  253.                When the program is patched a backup copy of the original is
  254.                made with a .BAK extension.
  255.  
  256.  
  257.     EXAMPLE:   1) Set the default video parameters and a configuration file
  258.                   for the ToolBOX program.
  259.  
  260.                       btspatch tbox =-ve43 -cg @c:\bin\data\my.cfg
  261.  
  262.                       BTSPATCH V1.4 (c) 1992,93 - The Binary Toolshed
  263.  
  264.                       Program           : TBOX V1.40 (Unregistered Version)
  265.                       Current arguments : -ve43 -xt
  266.                       New argument list : -ve43 -cg @c:\bin\data\my.cfg
  267.  
  268.  
  269. BTS Utilities User Manual                                 (BTSPATCH) Page 5
  270. ___________________________________________________________________________
  271.  
  272.  
  273.                2) Change the default for the number of levels displayed for
  274.                   the DIRS program to one.  Note the original factory
  275.                   defaults are not actually stored as command line
  276.                   arguments.
  277.  
  278.                       btspatch dirs =-l1
  279.  
  280.                       BTSPATCH V1.4 (c) 1992,93 - The Binary Toolshed
  281.  
  282.                       Program           : DIRS V1.40
  283.                       Current arguments :
  284.                       New argument list : -l1
  285.  
  286.  
  287. BTS Utilities User Manual                                     (DIRS) Page 6
  288. ___________________________________________________________________________
  289.  
  290.  
  291. 3.0 DIRS                                                               V1.4
  292. ___________________________________________________________________________
  293.  
  294.     PURPOSE:   Displays the physical disk space allocated to a directory
  295.                branch, i.e. a directory and all of its subdirectories.
  296.  
  297.  
  298.     USAGE:     dirs  path -l# -[pP] -[sS]
  299.  
  300.                where (all arguments are optional):
  301.  
  302.                     path      the root directory to start the display from.
  303.                               The default is the current directory on the
  304.                               current drive.
  305.  
  306.                     -l#       where # indicates the maximum number of
  307.                               displayed levels.  # may range from 1 to 16
  308.                               with a default of 7.  Files for lower levels
  309.                               that are not displayed are still incorporated
  310.                               into the cumulative totals.
  311.  
  312.                     -p / -P   determines if DIRS should Pause after each
  313.                               complete output screen.  Default is pause:-P.
  314.  
  315.                     -s / -S   determines if the Summary report should be
  316.                               inhibited.  Default is no summary report:-S.
  317.  
  318.                The default is equivalent to: dirs .\ -l7 -P -S
  319.  
  320.  
  321.     SUMMARY:   Graphically shows the directory tree with the cumulative
  322.                space used by a directory and all of its subordinates.
  323.  
  324.                Entries within each level are listed alphabetically.
  325.  
  326.                All byte totals are in terms of integral cluster units.
  327.                That is, the unused space (slackspace) at the end of the
  328.                last allocated cluster for each file is included in the
  329.                total sizes.
  330.  
  331.                The main report contains three columns.  The first displays
  332.                the directory tree.  The second column identifies the total
  333.                space allocated by the directory to the left, INCLUDING all
  334.                of its subdirectories.  The third column identifies the
  335.                number of files and disk space used within the single
  336.                directory.
  337.  
  338.                The optional summary report contains two sections, one for
  339.                the drive and one for the branch.
  340.  
  341.                The drive portion is essentially self explanatory showing
  342.                the volume name, total capacity, free space (in bytes and as
  343.                a percentage), and the cluster size (the minimum allocation
  344.                unit size).  If the path started from the drive root, a
  345.                fourth line is displayed showing the drive space that is
  346. BTS Utilities User Manual                                     (DIRS) Page 7
  347. ___________________________________________________________________________
  348.  
  349.  
  350.                unavailable for file allocation.  This includes space
  351.                allocated to bad blocks as well as directories.  For hard
  352.                disks this is typically in the order of 1 to 2%, while
  353.                network drives are usually much higher in the 10 to 15%
  354.                range.
  355.  
  356.                The branch portion of the report pertains specifically to
  357.                the information associated with the displayed branch: total
  358.                number of directories, files, and allocated bytes, as well
  359.                as the portion of the total drive used.  The last line shows
  360.                the slack space within the branch - the cumulative total of
  361.                the unusable space at the end of the files.  This varies
  362.                considerably, usually being higher with greater proportions
  363.                of smaller files.
  364.  
  365.  
  366. BTS Utilities User Manual                                     (DIRS) Page 8
  367. ___________________________________________________________________________
  368.  
  369.  
  370.     EXAMPLE:   To display the data for drive c: for two directory levels
  371.                starting from the root, and to include a summary report:
  372.  
  373.  
  374.                dirs c:\ /s /l2
  375.  
  376.                Directory branch for - C:\
  377.  
  378.                \              32,360,448                30,720 in   3 files
  379.                ├─BIN             3,502,080           2,863,104 in 278 files
  380.                │ ├─DATA              313,344           313,344 in  34 files
  381.                │ ├─DOC               139,264           139,264 in   5 files
  382.                │ └─OLD               186,368           186,368 in  19 files
  383.                ├─DEV             2,390,016           2,390,016 in  21 files
  384.                ├─DOS               585,728             585,728 in  44 files
  385.                ├─PKG            25,694,208                   0 in   0 files
  386.                │ ├─LNL               129,024           129,024 in   9 files
  387.                │ ├─MAVIS             544,768           544,768 in   7 files
  388.                │ ├─MSC6            1,705,984           886,784 in  65 files
  389.                │ ├─PCPLUS          1,155,072           980,992 in  52 files
  390.                │ ├─PCTOOLS         1,777,664         1,777,664 in  63 files
  391.                │ ├─PM-PLUS         1,034,240         1,034,240 in 108 files
  392.                │ ├─QB              2,000,896           786,432 in  81 files
  393.                │ ├─QC              2,918,400         2,404,352 in  23 files
  394.                │ ├─TCPP            1,503,232         1,169,408 in  25 files
  395.                │ ├─WIN3            5,822,464         3,250,176 in 103 files
  396.                │ ├─WINWORD         1,155,072         1,155,072 in 202 files
  397.                │ ├─WORKS           2,748,416         2,654,208 in  92 files
  398.                │ ├─WP              2,807,808         1,828,864 in  30 files
  399.                │ └─XY                391,168           391,168 in  13 files
  400.                └─SYS               157,696             157,696 in  19 files
  401.  
  402.                Drive     : Volume - C:(SYS)
  403.                          : 33,449,984 total with 667,648 bytes free (2.0%)
  404.                          : Cluster size 2,048 bytes
  405.                          : 421,888 (1.3%) unavailable for file allocation
  406.  
  407.                Branch    : 32,360,448 bytes in 1,698 files, and 50 dirs
  408.                          : Occupies 96.7% of the total drive
  409.                          : Slack space 2,100,550 bytes or 6.5%
  410.  
  411. BTS Utilities User Manual                                   (DRIVES) Page 9
  412. ___________________________________________________________________________
  413.  
  414.  
  415. 4.0 DRIVES                                                             V1.4
  416. ___________________________________________________________________________
  417.  
  418.     PURPOSE:   Displays parameters for all of the allocated disk drives.
  419.  
  420.  
  421.     USAGE:     drives [-f]
  422.  
  423.                where:
  424.  
  425.                     -f        include diskette data in the report
  426.  
  427.  
  428.     SUMMARY:   Produces a report with a summary line for each allocated
  429.                logical drive in the system.
  430.  
  431.                If the -f option is not specified, the particular diskette
  432.                drive type is determined but the drive is not physically
  433.                accessed.  With the -f argument, the diskette drives must
  434.                have valid diskettes mounted.  Fields that are not available
  435.                because the diskette was not accessed are shown as ---.
  436.  
  437.                Information contained within the report includes:
  438.  
  439.                     drive     where multiple drive letters all reference
  440.                               the same physical drive, only one line is
  441.                               produced.  This can occur through the DOS
  442.                               SUBST command or a network mapping.
  443.  
  444.                     capacities   for each drive, the total capacity and the
  445.                               free space, as a percentage and in MegaBytes
  446.                               (1 MegaByte = 1,024,000 bytes).
  447.  
  448.                     type      whether a hard disk, ramdisk, network drive,
  449.                               Stacker (the pseudo drive created by the
  450.                               STACKER disk compression program), or one of
  451.                               the six diskette types (if the -f option is
  452.                               used, this is the type of the diskette,
  453.                               otherwise it is the type of the drive).
  454.  
  455.                     volume    disk drive name.
  456.  
  457.                Following the report are totals for the total capacity, and
  458.                free space (Mb and %).  These totals do not include the
  459.                diskette drives or ramdisks, and each physical disk is only
  460.                included once.
  461.  
  462. BTS Utilities User Manual                                  (DRIVES) Page 10
  463. ___________________________________________________________________________
  464.  
  465.  
  466.  
  467.     EXAMPLE:   Display parameters for currently assigned drives.  Do not
  468.                physically access the diskette drives:
  469.  
  470.                  DRIVES
  471.  
  472.                          free    used   capacity
  473.                  drive   (Mb)     (%)     (Mb)       type     volume name
  474.                  ─────  ──────   ─────  ────────   ────────  ────────────
  475.                    a:     ---     ---     1.20    1.2Mb 5¼   ---
  476.                    b:     ---     ---     0.36    360KB 5¼   ---
  477.                    c:    1.23    96.3    32.67    Hard Disk  SYS
  478.                    d:    4.96    85.2    32.67    Hard Disk  WRK
  479.                    e:    0.07    92.8     0.97    Hard Disk  TINYDRIV.E
  480.                    f:    0.08    81.3     0.41    Ram Disk   MS-RAMDR.IVE
  481.              g: j: y:    8.83    96.4   246.29    Net Drive  USR
  482.           h: w: x: z:   10.48    95.6   238.80    Net Drive  PUBLIC
  483.                    k:    2.34    99.0   225.28    Net Drive  DEV
  484.                    l:   17.09    93.6   262.13    Net Drive  NET-WRK
  485.                    m:   15.00    80.2    75.78    Net Drive  VCS
  486.                        ══════   ═════  ═══════
  487.                         59.99    94.7  1112.88
  488.  
  489.  
  490. BTS Utilities User Manual                                 (MAKEBAT) Page 11
  491. ___________________________________________________________________________
  492.  
  493.  
  494. 5.0 MAKEBAT                                                            V1.4
  495. ___________________________________________________________________________
  496.  
  497.     PURPOSE:   Creates batch files based on a template file and a selection
  498.                of files from a specified directory.
  499.  
  500.  
  501.     USAGE:     MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  502.  
  503.                where:
  504.  
  505.                     [d:][path]matchlist
  506.                               selection criteria for files to be applied
  507.                               to the template.
  508.  
  509.                     @template.ext
  510.                               a template file containing text lines with
  511.                               embedded variables that reference selected
  512.                               files.  If not provided, the input is
  513.                               assumed to come from STDIN.  No standard
  514.                               extension is used.
  515.  
  516.                     -arg1 -arg2 . . .
  517.                               these arguments (stripped of the - prefix)
  518.                               are used by variable references within the
  519.                               template file.
  520.  
  521.  
  522.     SUMMARY:   While intended for creating batch files, the facility can be
  523.                used for a variety of purposes.  The basic operation is that
  524.                for each file specified by the match list, the text lines
  525.                from the template (or STDIN) are copied to STDOUT.  Each of
  526.                the text lines within the template may contain variables (of
  527.                the form $x) which are replaced with some attribute of the
  528.                matched file.
  529.  
  530.                Within the template file, whether it was an actual file or
  531.                STDIN, each line is processed once for each selected file
  532.                except for lines prefixed with "[" or "]".  These are
  533.                processed once only, before and after the balance of the
  534.                template processing respectively.
  535.  
  536. BTS Utilities User Manual                                 (MAKEBAT) Page 12
  537. ___________________________________________________________________________
  538.  
  539.  
  540.                The text lines within the template file can contain two
  541.                letter variables consisting of a "$" followed by a letter.
  542.                These are similar to the <CTRL x> variables available within
  543.                ToolBOX.  The variables, which can reference the current
  544.                path or the matchlist path, are:
  545.  
  546.                     $D  current drive letter
  547.                     $P  current path
  548.                     $d  matchlist drive letter
  549.                     $p  matchlist path
  550.                     $n  filename (to 8 characters)
  551.                     $x  extension (to 3 characters)
  552.                     $f  minimized file name (for $d:$p\$n.$x)
  553.                     $$  a single literal $
  554.  
  555.                Variables can also reference the optional arguments
  556.                specified on the command line:
  557.  
  558.                     $1   the first argument -arg1
  559.                     $2   the second argument -arg2
  560.                     ...
  561.                     $9   the ninth argument
  562.  
  563.                When using STDIN, type <CTRL Z> to terminate the input data.
  564.  
  565.                A summary line is produced showing the number of input
  566.                lines, files, and output lines.  This is issued to STDERR so
  567.                that it will not be redirected.
  568.  
  569.  
  570.     EXAMPLE:   Assume a template file (MAKEBAT.TST) containing:
  571.  
  572.                     [LEADING LINE
  573.                     ]TRAILING LINE
  574.                     TESTING - CURRENT DRIVE      : $$D = $D
  575.                             - CURRENT PATH       : $$P = $P
  576.                             - REFERENCED DRIVE   : $$d = $d
  577.                             - REFERENCED PATH    : $$p = $p
  578.                             - REFERENCED NAME    : $$n = $n
  579.                             - REFERENCED .EXT    : $$x = $x
  580.                             - MINIMIZED FILENAME : $$f = $f
  581.                             - arg1               : $$1 = $1
  582.                             - arg2               : $$2 = $2
  583.                             - arg3               : $$3 = $3
  584.                             - arg4               : $$4 = $4
  585.  
  586. BTS Utilities User Manual                                 (MAKEBAT) Page 13
  587. ___________________________________________________________________________
  588.  
  589.  
  590.                Now execute the following command from the d:\utl directory.
  591.                Assume this matches two files, TBOX.EXE and TBOX.DOC.
  592.  
  593.                  >makebat c:\bin\tbox.* @makebat.txt -first -second -third
  594.  
  595.                The summary line is
  596.  
  597.                     Lines in 13:   Files matched 2:    Lines output 34
  598.  
  599.                The output to STDOUT is:
  600.  
  601.                     LEADING LINE
  602.                     TESTING - CURRENT DRIVE      : $D = D
  603.                             - CURRENT PATH       : $P = \UTL
  604.                             - REFERENCED DRIVE   : $d = C
  605.                             - REFERENCED PATH    : $p = \BIN
  606.                             - REFERENCED NAME    : $n = TBOX
  607.                             - REFERENCED .EXT    : $x = DOC
  608.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.DOC
  609.                             - arg1               : $1 = first
  610.                             - arg2               : $2 = second
  611.                             - arg3               : $3 = third
  612.                             - arg4               : $4 =
  613.                     TESTING - CURRENT DRIVE      : $D = D
  614.                             - CURRENT PATH       : $P = \UTL
  615.                             - REFERENCED DRIVE   : $d = C
  616.                             - REFERENCED PATH    : $p = \BIN
  617.                             - REFERENCED NAME    : $n = TBOX
  618.                             - REFERENCED .EXT    : $x = EXE
  619.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.EXE
  620.                             - arg1               : $1 = first
  621.                             - arg2               : $2 = second
  622.                             - arg3               : $3 = third
  623.                             - arg4               : $4 =
  624.                     TRAILING LINE
  625.  
  626.  
  627. BTS Utilities User Manual                                  (ONPATH) Page 14
  628. ___________________________________________________________________________
  629.  
  630.  
  631. 6.0 ONPATH                                                            V1.40
  632. ___________________________________________________________________________
  633.  
  634.     PURPOSE:   Determines if any files, and which ones, will be accessed
  635.                through the search path.
  636.  
  637.     USAGE:     ONPATH  matchlist [=setvariable] ...
  638.  
  639.                where:
  640.  
  641.                     matchlist      list of one or more file specifications
  642.                                    to be searched for.
  643.  
  644.                     =setvariable   alternate set variable in place of PATH.
  645.  
  646.  
  647.     SUMMARY:   ONPATH will search through the directories in the PATH
  648.                variable to find the files identified in the matchlist.  The
  649.                search is carried out in the same order as the DOS search
  650.                for program names; that is the current directory and then
  651.                the PATH directories starting from the first.  A summary
  652.                line is displayed as each valid file match is detected.
  653.  
  654.                If multiple matches for programs occur, it is the first that
  655.                would be executed if the program name were entered without a
  656.                path specification.  Also, if multiple executable files are
  657.                found within the same directory, DOS gives precedence to the
  658.                .COM, then .EXE, and finally the .BAT variation.
  659.  
  660.                While the default is to search the PATH variable, any
  661.                alternate set variable that follows the same format can be
  662.                specified: for example =LIB, =TMP, or =INCLUDE.  =PATH is
  663.                assumed if no other set variables are referenced.
  664.  
  665.  
  666.     EXAMPLE:   To find all files on the PATH which start with "tbox"
  667.                followed by anything, and which have any extension:
  668.  
  669.                     onpath tbox*
  670.  
  671.                         120,466 Jly14/93 12:29 D:\BIN\TBOX.DOC
  672.                          57,723 Jly14/93 01:00 D:\BIN\TBOX.EXE
  673.                          50,367 Jly14/93 01:12 D:\BIN\TBOXCFG.EXE
  674.  
  675.  
  676. BTS Utilities User Manual                                 (TOASCII) Page 15
  677. ___________________________________________________________________________
  678.  
  679.  
  680. 7.0 TOASCII                                                            V1.4
  681. ___________________________________________________________________________
  682.  
  683.     PURPOSE:   Filter for converting text files with IBM extended
  684.                characters to standard ASCII text.
  685.  
  686.     USAGE:     toascii  <input  >output
  687.  
  688.     SUMMARY:   The primary purpose of this utility is to make text files
  689.                that contain line drawing and other extended characters,
  690.                acceptable for printers that only support standard ASCII
  691.                characters.  This applies for example to the text of this
  692.                document as well as data output by the DRIVES and DIRS
  693.                utilities.
  694.  
  695.                The TOASCII utility program translates text from STDIN to
  696.                STDOUT.  Embedded characters that are outside the standard
  697.                ASCII text range are translated to the closest equivalent
  698.                within the range.  The acceptable ASCII characters are those
  699.                in the range 32 through 126, plus carriage return, linefeed,
  700.                tab and EOF.
  701.  
  702.                The general translations performed are:
  703.  
  704.                     o line drawings to | - or +
  705.                     o accented characters to the unaccented equivalent
  706.                     o numeric type characters to #
  707.                     o shaded and bullet characters to #
  708.                     o all other characters to ?
  709.  
  710.                Substitutions are always one for one; the file size will not
  711.                change.
  712.  
  713.  
  714.     EXAMPLE:   1) To convert this document to a file containing only
  715.                   standard ASCII characters:
  716.  
  717.                      toascii <utils.doc  >utils.asc
  718.  
  719.  
  720.                2) To convert this document directly to the printer:
  721.  
  722.                      toascii <utils.doc  >prn
  723.  
  724.  
  725.                3) Use pipes to produce a paginated ASCII screen version of
  726.                   the DIRS program output:
  727.  
  728.                      dirs \ /p | toascii | more
  729. BTS Utilities User Manual                                    (TREE) Page 16
  730. ___________________________________________________________________________
  731.  
  732.  
  733. 8.0 TREE                                                               V1.4
  734. ___________________________________________________________________________
  735.  
  736.     PURPOSE:   Full screen program to provide a visual representation of a
  737.                directory structure.
  738.  
  739.     USAGE:     tree path @cfgfile -Dpath  -V[b m c s e v]  -C[m c g]
  740.                     -X[a#][c][dD][i][t#][uU]
  741.  
  742.                where (all arguments are optional):
  743.  
  744.                     path      initial display drive and/or directory.
  745.                               Defaults to current directory.
  746.  
  747.                     @cfgfile  full configuration pathname.  Color and
  748.                               default-command-line- argument components
  749.                               are used.
  750.  
  751.                     -Dpath    directory for BTS-TREE.DAT.  Defaults to
  752.                               first directory on PATH.
  753.  
  754.                     -Video[bIOS mONOCHROME sNOW cGA eGA vGA]
  755.                               Refer to the VIEW utility in Section 9.0
  756.                               for details.  No argument is provided
  757.                               for screen lines as TREE automatically
  758.                               adapts to the DOS setting, whether 25, 43,
  759.                               or 50 lines.
  760.  
  761.                     -Color[mONOCHROME cOLOR gRAYSCALE]
  762.                               Refer to the VIEW utility in Section 9.0
  763.                               for details.
  764.  
  765.  
  766.                     -X        eXecute flags (Default = -Xa15Dt7U)
  767.  
  768.                          a#        Audio, where # enables error sounds for
  769.                                    1(border) + 2(syntax) + 4(execution)
  770.                                    +8 (directory screen update).
  771.  
  772.                          c         force Current drive tree initialization.
  773.  
  774.                          d / D     use Datafile.
  775.  
  776.                          i         force Initialization of all drive trees.
  777.  
  778.                          t#        set filelist update wait Time
  779.                                    (tenths/sec).
  780.  
  781.                          u / U     Update datafile enable.
  782.  
  783.  
  784. BTS Utilities User Manual                                    (TREE) Page 17
  785. ___________________________________________________________________________
  786.  
  787.  
  788.     SUMMARY:   The TREE utility provides a windowed visual representation
  789.                of the disk directory structure.  Commands are provided to:
  790.  
  791.                     o scroll through the directory structure.
  792.  
  793.                     o change the display to an alternate drive.
  794.  
  795.                     o move to a particular directory.
  796.  
  797.                     o display the list of files within a directory, or view
  798.                       the contents of individual files.
  799.  
  800.  
  801.                GENERAL OPERATION
  802.                _________________
  803.  
  804.                As shown in the following sample screen, the TREE window
  805.                overlays the central portion of the DOS screen.  The display
  806.                consists of three separate subwindows.  At any time, the
  807.                active cursor is in either the Directory Tree or the File
  808.                List window.  The three windows are:
  809.  
  810.                     Top Header
  811.  
  812.                          Shows the current drive and volume name, time,
  813.                          free space on the current drive (as a percentage),
  814.                          and the full directory path for the directory at
  815.                          the current cursor position.
  816.  
  817.                          It also contains the byte total for the files in
  818.                          the File List window - see below.
  819.  
  820.                     Directory Tree
  821.  
  822.                          This lower left window pictorially displays the
  823.                          directory tree structure.  The entry for the
  824.                          currently selected cursor position is highlighted,
  825.                          and a diamond () is placed to the left of the
  826.                          current directory.  Directory entries within each
  827.                          level are ordered alphabetically.
  828.  
  829.                     File List
  830.  
  831.                          This lower right window displays an alphabetical
  832.                          list of the files within the directory at the
  833.                          current Directory Tree cursor position.  This data
  834.                          changes each time the Directory Tree window cursor
  835.                          is moved.  See below for a complete explanation.
  836.  
  837.                By default, when the utility is initially started the
  838.                display shows the current drive with the cursor at the
  839.                current directory.  The command line "path" argument can be
  840.                used to override this initial default drive and/or path.
  841.  
  842. BTS Utilities User Manual                                    (TREE) Page 18
  843. ___________________________________________________________________________
  844.  
  845.  
  846.                       ┌Free 1% ─────── C:(SYS) ──────13:01:38┐
  847.                       │ \DOS                         540,004 │
  848.                       └──────────────────────────────────────┘
  849.                       ╔════════════════════════╗╔════════════╗
  850.                       ║├─BIN                   ║║ANSI.SYS    ║
  851.                       ║│ ├─DATA                ║║APPEND.EXE  ║
  852.                       ║│ └─DOC                 ║║ASSIGN.COM  ║
  853.                       ║├─DEV                   ║║ATTRIB.EXE  ║
  854.                       ║├DOS                   ║║BASRUN.EXE  ║
  855.                       ║├─PKG                   ║║BRUN30.EXE  ║
  856.                       ║│ ├─LNL                 ║║CHKDSK.COM  ║
  857.                       ║│ ├─MAVIS               ║║COMMAND.COM ║
  858.                       ║│ ├─MSC6                ║║COMMAND.ORG ║
  859.                       ║│ │ └─LIB-DATA          ║║COMMAND.PIF ║
  860.                       ║│ ├─PCPLUS              ║║COMP.COM    ║
  861.                       ║│ │ ├─1200B             ║║CURRENT.STS ║
  862.                       ║│ │ ├─CFG               ║║DEBUG.COM   ║
  863.                       ║│ │ └─DATA              ║║DISKCOMP.COM║
  864.                       ║│ ├─PCTOOLS             ║║DISKCOPY.COM║
  865.                       ╚════════════════════════╝╚════════════╝
  866.  
  867.                The optional command line argument "@cfgfile" specifies a
  868.                configuration file as created by TBOXCFG.EXE.  The color
  869.                settings and default-command-line-arguments within this file
  870.                are used, with all other settings being discarded.  Any
  871.                required path or extension for the configuration file must
  872.                be explicitly specified.
  873.  
  874.                On startup, the Directory Tree window is active.  Subse-
  875.                quently the user can switch back and forth between the
  876.                Directory Tree and File List windows, with the active window
  877.                being indicated by the highlighted border.
  878.  
  879.                <F1> can be entered at any time.  It produces several Help
  880.                screens of information that describe the available keyboard
  881.                controls and command line arguments.  Use <ESC> to terminate
  882.                the Help screens.
  883.  
  884.                Enter <ESC> or <ALT q> to exit from the program without
  885.                making any directory changes.  No verification prompts are
  886.                issued.
  887.  
  888.  
  889. BTS Utilities User Manual                                    (TREE) Page 19
  890. ___________________________________________________________________________
  891.  
  892.  
  893.                DIRECTORY TREE WINDOW
  894.                _____________________
  895.  
  896.                Within the Directory Tree window, the user has a number of
  897.                single key commands available:
  898.  
  899.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>,
  900.                     <HOME><HOME>, <END><END>
  901.  
  902.                          These vertical motion commands move the cursor for
  903.                          the selected directory.  The motion is independent
  904.                          of the actual tree structure.  For example <DOWN>
  905.                          moves to the next adjacent directory, regardless
  906.                          of whether it is at the same, or a higher or lower
  907.                          level.
  908.  
  909.                     <RIGHT>
  910.  
  911.                          Activate the File List window with data for the
  912.                          directory selected at the current cursor.
  913.  
  914.                     <RETURN>
  915.  
  916.                          Change the current drive and directory to the
  917.                          directory at the selected cursor position, and
  918.                          then exit from the TREE program.
  919.  
  920.                     <SHIFT UP>, <SHIFT DOWN>
  921.  
  922.                          Move to the previous or next directory respect-
  923.                          ively that exists at the same level as the current
  924.                          directory cursor.
  925.  
  926.                     <SHIFT LEFT>, <SHIFT RIGHT>
  927.  
  928.                          Move to the next directory at a higher (i.e.
  929.                          parent) or lower (i.e. first subdirectory) level
  930.                          respectively.
  931.  
  932.                     <mid keypad 5>
  933.  
  934.                          Equivalent to <SHIFT UP> and <SHIFT DOWN> above
  935.                          except moves in same direction as the previously
  936.                          used cursor key.
  937.  
  938.                     <letter>
  939.  
  940.                          Fast directory find.  Cursor is moved to the next
  941.                          directory that starts with the entered letter
  942.                          (actually any valid filename character).  Case is
  943.                          not significant.  The directory tree is treated as
  944.                          a circular list with automatic wrap around.
  945.  
  946. BTS Utilities User Manual                                    (TREE) Page 20
  947. ___________________________________________________________________________
  948.  
  949.  
  950.                     <CTRL letter>
  951.  
  952.                          Switch the tree display to the drive represented
  953.                          by the letter.  For example, <CTRL D> to move to
  954.                          drive D.  An error tone is issued if the requested
  955.                          drive does not exist.
  956.  
  957.                     <keypad ->, <keypad +>
  958.  
  959.                          The TREE utility maintains a list of the last
  960.                          accessed disk drives.  These keys update the
  961.                          display in a circular manner respectively to the
  962.                          next previous or oldest drive in the list.
  963.  
  964.                     <CTRL PGDN>, <CTRL PGUP>
  965.  
  966.                          These keys update the display to the next adjacent
  967.                          logical disk drive - alphabetically down or up
  968.                          respectively.  This sequence automatically wraps
  969.                          around after the lowest or highest drive.  For
  970.                          example, if the user is on drive B: and only
  971.                          drives A:, B:, and C: exist, then successively
  972.                          entering <CTRL RIGHT> cycles to C:, A:, B:, C:,
  973.                          A:, and so on.
  974.  
  975.                Refer to the General Product Overview Manual for alternate
  976.                keys for the <SHIFT cursor> and <mid pad 5> keystrokes which
  977.                may not be available on all PCs.
  978.  
  979.                FILE LIST WINDOW
  980.                _________________
  981.  
  982.                The File List window contains an alphabetical list of the
  983.                files for the directory identified by the cursor location in
  984.                the Directory Tree window.
  985.  
  986.                The File List window can be in any of three states:
  987.  
  988.                     Not-used
  989.  
  990.                          To prevent unnecessary disk activity and screen
  991.                          updates, the File List window is not updated until
  992.                          the user stops scrolling through the directory
  993.                          tree for a predefined duration.  By default this
  994.                          is seven tenths of a second, or slightly higher
  995.                          than the default initial keyboard repeat rate.  To
  996.                          suit personal tastes, this duration can be changed
  997.                          to a higher or lower rate by the -Xt# command line
  998.                          argument.
  999.  
  1000.                          When Not-used, the File List window is clear and
  1001.                          the Tree Directory window border is highlighted.
  1002.                          The directory total in the header window is
  1003.                          blanked.
  1004.  
  1005. BTS Utilities User Manual                                    (TREE) Page 21
  1006. ___________________________________________________________________________
  1007.  
  1008.  
  1009.                     Filled-in
  1010.  
  1011.                          The File List window is filled-in with an alpha-
  1012.                          betical list of the files when the time delay for
  1013.                          the deferred update expires.  The Directory Tree
  1014.                          window is still active.
  1015.  
  1016.                          At this time the directory total field in the
  1017.                          header is set to the total number of bytes for all
  1018.                          files within the directory.  The field is set to
  1019.                          "No files" if there are no files.
  1020.  
  1021.                          There is a current maximum of 400 files within the
  1022.                          window.  If this is exceeded, the first 400 are
  1023.                          used, the error tone is issued, and a "*" is
  1024.                          placed after the total field in the header.
  1025.  
  1026.                     Active
  1027.  
  1028.                          If there is a need to view a file, see the file
  1029.                          list quicker, or scroll through the file list,
  1030.                          then activate the File List window.  Do this by
  1031.                          entering <RIGHT> from the Tree Directory window.
  1032.                          If the window is not already filled-in the file
  1033.                          list is initially updated as above.  The active
  1034.                          File List window is identified by the highlighted
  1035.                          border and a cursor on the initial file entry.
  1036.  
  1037.                          Scroll through the file list as desired.  As for
  1038.                          the Tree Directory window, enter <any letter> as a
  1039.                          fast file find.  The cursor will move to the next
  1040.                          file entry that starts with the entered letter.
  1041.  
  1042.                          To view the file at the cursor, enter <RETURN>.
  1043.                          This will initiate the VIEW.EXE utility.
  1044.  
  1045.                          Enter <LEFT> to return to and reactivate the Tree
  1046.                          Directory window.
  1047.  
  1048.  
  1049.                BTS-TREE.DAT Data File
  1050.                ______________________
  1051.  
  1052.                To optimize speed, the utility maintains a data file with
  1053.                the most recent representation of the directory structure
  1054.                for all drives.  This file, BTS-TREE.DAT, is automatically
  1055.                updated as required to reflect changes in the directory
  1056.                structure.
  1057.  
  1058.                The first time the TREE utility is run, it will create the
  1059.                file in the first directory that exists on the PATH.  A
  1060.                window message is generated indicating where this data file
  1061.                is being created.  On subsequent times, the utility searches
  1062.                the current and then PATH directories for this data file.
  1063.                After the data file is initially created you may wish to
  1064. BTS Utilities User Manual                                    (TREE) Page 22
  1065. ___________________________________________________________________________
  1066.  
  1067.  
  1068.                move it to another directory on the PATH.  Especially if the
  1069.                first directory corresponds to a ramdisk.
  1070.  
  1071.                The -Dpath command line argument can be used to explicitly
  1072.                specify a directory for the BTS-TREE.DAT file.  If the file
  1073.                does not exist in this directory, it will be created.
  1074.  
  1075.                The -Xd command line argument inhibits use of the data file.
  1076.                With this setting, the data file is ignored and the disk
  1077.                structure is re-analyzed in its entirety each time a new
  1078.                drive tree is displayed.
  1079.  
  1080.  
  1081.                DATA FILE UPDATES
  1082.                _________________
  1083.  
  1084.                Normally, changes within the directory tree structure are
  1085.                automatically detected and adjusted for.  The tree
  1086.                information for the drives is initially read from the BTS-
  1087.                TREE.DAT file.  Each time the file list window is updated,
  1088.                the accompanying directories are compared to the BTS-
  1089.                TREE.DAT version.  If there is a difference, this branch of
  1090.                the tree is automatically updated.  An audible tone, best
  1091.                characterized as a "sproing", is issued when the update
  1092.                occurs.  The BTS-TREE.DAT file is updated with all such
  1093.                changes prior to displaying the next drive.
  1094.  
  1095.                Two command line -X subarguments are available for control-
  1096.                ling the use of the BTS-TREE.DAT datafile:
  1097.  
  1098.                     [dD]
  1099.  
  1100.                          This argument specifies whether to use (-XD) or
  1101.                          not use (-Xd) the BTS-TREE.DAT data file.  If not,
  1102.                          then each time the directory tree is displayed, it
  1103.                          is created by analyzing the entire disk structure.
  1104.                          This is considerably slower than reading the
  1105.                          equivalent information from the BTS-TREE.DAT file;
  1106.                          however, it does guarantee that the entire direct-
  1107.                          ory tree information is correct immediately.
  1108.  
  1109.                          The directory information for removable diskettes
  1110.                          is never stored in the BTS-TREE.DAT file.  It is
  1111.                          always created directly from the directory
  1112.                          structure on the diskette.
  1113.  
  1114.                     [uU]
  1115.  
  1116.                          Controls whether the BTS-TREE.DAT file is to be
  1117.                          updated (-XU) or not (-Xu) with the changes
  1118.                          detected for any of the directories.  Note the
  1119.                          screen display is always updated, this option just
  1120.                          controls whether the changes are to be recorded.
  1121.                          This feature is useful if there are temporary
  1122.                          drive reassignments.
  1123. BTS Utilities User Manual                                    (TREE) Page 23
  1124. ___________________________________________________________________________
  1125.  
  1126.  
  1127.  
  1128.                     [c]
  1129.  
  1130.                          Requests that the directory tree for the current
  1131.                          drive be updated immediately before the program
  1132.                          starts.  This is useful if there are known changes
  1133.                          that can be handled up front rather than waiting
  1134.                          for each to be detected individually later.
  1135.  
  1136.                     [i]
  1137.  
  1138.                          Requests that the directory tree for all drives be
  1139.                          updated immediately.
  1140.  
  1141.  
  1142.                The BTS-TREE.DAT updates identified above can be requested
  1143.                at any time through the keyboard by:
  1144.  
  1145.                     <ALT c>
  1146.  
  1147.                          Update the directory tree for the current drive.
  1148.                          This is similar to the -xc command line argument.
  1149.  
  1150.                     <ALT i>
  1151.  
  1152.                          Update the directory trees for all non-removable
  1153.                          drives.  This is similar to the -xi command line
  1154.                          argument.
  1155.  
  1156.  
  1157.  
  1158.     EXAMPLE:   To start the TREE program for drive d: with the cursor
  1159.                starting at the \dos directory, disabling the audible tones
  1160.                for syntax errors and the automatic directory updates,
  1161.                using color information from the c:\bin\my.cfg configuration
  1162.                file, and using the c:\data\bts-tree.dat data file:
  1163.  
  1164.                     tree d:\dos -xa5 @c:\bin\my.cfg -Dc:\data
  1165.  
  1166.  
  1167. BTS Utilities User Manual                                    (VIEW) Page 24
  1168. ___________________________________________________________________________
  1169.  
  1170.  
  1171. 9.0 VIEW                                                               V1.4
  1172. ___________________________________________________________________________
  1173.  
  1174.     PURPOSE:   Provides a mechanism for viewing the contents of text files.
  1175.  
  1176.     USAGE:     view [d:][path]matchlist @cfgfile
  1177.                  -V[b m c s e v][25 43 50]  -C[m c g]  -X[a#][iI][rR]
  1178.  
  1179.                where (all arguments are optional):
  1180.  
  1181.                     [d:][path]matchlist
  1182.                               specification for one or more files to be
  1183.                               viewed.  There are no assumed extensions.
  1184.  
  1185.  
  1186.                     @cfgfile  full configuration pathname.  Color, command-
  1187.                               line-argument, and banner name components are
  1188.                               used.  No default extensions are assumed.
  1189.  
  1190.                     -V[b m c s e v] [25 43 50]
  1191.  
  1192.                               By default, VIEW will select a video mode
  1193.                               applicable to the hardware and DOS state at
  1194.                               program startup.  The -V argument is used to
  1195.                               override this selection in order to use a
  1196.                               different monitor type (m,c,s,e,v), to use a
  1197.                               different output technique (b,s) or to alter
  1198.                               the screen resolution (25, 43, 50).
  1199.  
  1200.                          b    use BIOS output routines.  Normally video
  1201.                               data is issued directly to the video card.
  1202.                               Using the BIOS will slow down the video
  1203.                               update rate but may be necessary for some
  1204.                               incompatible systems.
  1205.  
  1206.                          m    assume monochrome text (MDA) video card.
  1207.  
  1208.                          c, e, or v
  1209.                               assume color graphics (CGA, EGA, or VGA)
  1210.                               video card.  All 3 settings have the same
  1211.                               effect.
  1212.  
  1213.                          s    assume CGA graphics video card and do
  1214.                               processing to remove snow on screen.  This
  1215.                               option slows down the update rate and should
  1216.                               be avoided unless necessary.
  1217.  
  1218.                          25   assume 25 visible lines of text.
  1219.  
  1220.                          43   assume EGA/VGA card and use the 43 line by 80
  1221.                               column mode.
  1222.  
  1223.                          50   assume VGA card and use the 50 line by 80
  1224.                               column mode.
  1225.  
  1226. BTS Utilities User Manual                                    (VIEW) Page 25
  1227. ___________________________________________________________________________
  1228.  
  1229.  
  1230.                -C[m c g]
  1231.  
  1232.                     Selects one of the predefined color tables.  If the
  1233.                     argument is not specified the current video hardware
  1234.                     configuration is examined and m or c assumed.  Any
  1235.                     setting can be used with any monitor.  Also, there is
  1236.                     no connection between the -C and -V settings.
  1237.  
  1238.                          m    monochrome text displays.
  1239.  
  1240.                          c    color displays.
  1241.  
  1242.                          g    gray scale displays, that is LCD or mono-
  1243.                               chrome monitors using color video cards.
  1244.                               This is greatly affected by the particular
  1245.                               combination of video card and display device.
  1246.  
  1247.  
  1248.                -X        eXecute flags (Default = -Xa7cir)
  1249.  
  1250.                          a#        Audio, where # enables error sounds for
  1251.                                    1(border) + 2(syntax) + 4(execution)
  1252.  
  1253.                          c / C     make text searches Case sensitive.
  1254.  
  1255.                          iI        exit Immediately without a verification
  1256.                                    prompt when <ESC> is entered.  <ALT q>
  1257.                                    always exits immediately, regardless
  1258.                                    of this setting.
  1259.  
  1260.                                    The I setting is primarily for the use
  1261.                                    of the ToolBOX and TREE programs which
  1262.                                    "appear" to integrate VIEW into their
  1263.                                    interface.
  1264.  
  1265.                          r / R     Restore the original DOS screen on exit,
  1266.                                    the alternative (r) being to leave the
  1267.                                    VIEW screen unaltered.
  1268.  
  1269.  
  1270. BTS Utilities User Manual                                    (VIEW) Page 26
  1271. ___________________________________________________________________________
  1272.  
  1273.  
  1274.     SUMMARY:   The VIEW utility provides a convenient mechanism for
  1275.                scrolling through the contents of a text file.  As
  1276.                illustrated in the following sample screen, the utility
  1277.                produces a full screen display of the text.  Commands are
  1278.                available to:
  1279.  
  1280.                     o scroll through the text contents, vertically and
  1281.                       horizontally
  1282.  
  1283.                     o search for specific text strings
  1284.  
  1285.                     o specify and view additional text files
  1286.  
  1287.                     o alter screen parameters
  1288.  
  1289.                While optimized for standard text in lines of less than 78
  1290.                characters, VIEW can be used to examine binary information.
  1291.  
  1292.  
  1293.  
  1294.     ╒═The Binary Toolshed ════════ VIEW ══════════ Tue Jly 14/93 23:12:54═╕
  1295.     │                                                                     │
  1296.     │This is a sample text file.  The text lines demonstrate the use of   │
  1297.     │the VIEW.EXE utility to examine or browse the contents of such a     │
  1298.     │data file.                                                           │
  1299.     │                                                                     │
  1300.     │The ┌───────────────────────────┐le up to the available memory limit.│
  1301.     │It a│File list          <ALT f> │lection, and text searches.         │
  1302.     │    │set file Matchlist <ALT m> │                                    │
  1303.     │    │Next┌──Enter filename matchlist──────────────┐                  │
  1304.     │    │Prev│sample2.txt                             │                  │
  1305.     │    │Sear└────────────────────────────────────────┘                  │
  1306.     │    │set search Case            │                                    │
  1307.     │    │set search Direction       │                                    │
  1308.     │    └───────────────────────────┘                                    │
  1309.     │                                                                     │
  1310.     │                                                                     │
  1311.     │                                                                     │
  1312.     │                                                                     │
  1313.     │                                                                     │
  1314.     │                                                                     │
  1315.     │                                                                     │
  1316.     │                                                                     │
  1317.     │                                                                     │
  1318.     ╘═SAMPLE.TXT═════════ Jly14/93 23:12══════════════════════(8)       8═╛
  1319.  
  1320.     EXAMPLE VIEW SCREEN : Popup Menu With Text Entry Window For Matchlist
  1321.  
  1322.  
  1323.  
  1324. BTS Utilities User Manual                                    (VIEW) Page 27
  1325. ___________________________________________________________________________
  1326.  
  1327.  
  1328.                GENERAL OPERATION
  1329.                _________________
  1330.  
  1331.                The VIEW screen contains status information on the top and
  1332.                bottom border lines.
  1333.  
  1334.                All of the file specific data is contained on the bottom
  1335.                line.  This includes the data file pathname, the last
  1336.                modification date, and on the lower right the line number of
  1337.                the last line on the screen.  If the last line number in the
  1338.                file is known, it is shown in parenthesis just to the left
  1339.                of this number.  Rather than reading all of the data
  1340.                initially, VIEW only reads subsequent sections of the data
  1341.                file when warranted.  A "***READING**" status indicator is
  1342.                shown on the bottom line when this occurs.  Only when the
  1343.                last line of the file has been been read will the parenthe-
  1344.                sized number appear.  If no data file is open, then the
  1345.                bottom status line is blank.
  1346.  
  1347.                While viewing the text file, the user has a number of single
  1348.                key commands available:
  1349.  
  1350.                     <F1>
  1351.  
  1352.                          Produces several Help screens of information that
  1353.                          describe the available keyboard controls and the
  1354.                          command line arguments.  Use <ESC> to terminate
  1355.                          the Help screens.
  1356.  
  1357.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>
  1358.  
  1359.                          These vertical motion commands move the screen
  1360.                          view in the anticipated direction - by one line,
  1361.                          one page, or to the extreme limits of the file.
  1362.  
  1363.  
  1364.                     <LEFT>, <RIGHT>
  1365.  
  1366.                          Normally the text window displays the first 78
  1367.                          characters of each line.  Text past column 78 can
  1368.                          be viewed by entering <RIGHT>.  This scrolls the
  1369.                          entire display right by 10 characters.  When the
  1370.                          text is scrolled right, the maximum line number
  1371.                          field on the bottom line is replaced by an
  1372.                          indicator for how far right the window is scroll-
  1373.                          ed.  For example if the screen is scrolled right
  1374.                          by two steps, then the field shows "(COLS+020)" to
  1375.                          indicate the viewable screen is actually showing
  1376.                          columns 21 through 98 of each line.  Use <LEFT> to
  1377.                          scroll back.
  1378.  
  1379.  
  1380.                     <ALT f>, <ALT m>, <keypad +>, <keypad ->
  1381.  
  1382.                          See the following File Operations section.
  1383. BTS Utilities User Manual                                    (VIEW) Page 28
  1384. ___________________________________________________________________________
  1385.  
  1386.  
  1387.  
  1388.  
  1389.                     <Alt g>, <ALT s>, <RETURN>, <CTRL RETURN>, <character>
  1390.  
  1391.                          See the Goto/Search Operations section.
  1392.  
  1393.                     </>
  1394.  
  1395.                          See the Popup Menu section.
  1396.  
  1397.  
  1398.                     <ALT 2>, <ALT 4>, <ALT 5>, <ALT 0>
  1399.  
  1400.                          These commands set the number of screen lines for
  1401.                          the VIEW display - to 25, 43, and 50 lines
  1402.                          respectively.  The <ALT 0> setting restores the
  1403.                          screen lines to the same setting DOS had when the
  1404.                          VIEW program was started.
  1405.  
  1406.                     <ESC>
  1407.  
  1408.                          Exit from the VIEW program.  Unless the "-XI"
  1409.                          command line argument is set, this key will
  1410.                          initiate a verification window to ensure the exit
  1411.                          is actually desired.  If there are additional
  1412.                          files in the current file list (see File
  1413.                          Operations below), then an option is also provided
  1414.                          in the verification window to open any of these
  1415.                          files.
  1416.  
  1417.                          <ESC> is also used to escape from the current
  1418.                          operation; whether entering search text or a
  1419.                          matchlist specification, or the popup menu.
  1420.  
  1421.                     <ALT q>
  1422.  
  1423.                          Exit from the VIEW program immediately.  No
  1424.                          verification prompt is issued.
  1425.  
  1426.                The single text file as described here, appears on startup
  1427.                if a single file was specified on the command line.
  1428.                Additional initial windows occur if no files, or multiple
  1429.                files, were specified on the command line.  For these
  1430.                conditions refer to the <ALT m> and <ALT f> explanations in
  1431.                the following File Operation section.
  1432.  
  1433.                Error windows will be generated if read errors occur or if
  1434.                the file size exceeds the available memory limit (for
  1435.                systems with a full complement of memory, this is typically
  1436.                in excess of 500KB).
  1437.  
  1438.  
  1439. BTS Utilities User Manual                                    (VIEW) Page 29
  1440. ___________________________________________________________________________
  1441.  
  1442.  
  1443.                FILE OPERATIONS
  1444.                _______________
  1445.  
  1446.                While VIEW is only capable of displaying one file at a time,
  1447.                it is possible to specify multiple files through a matchlist
  1448.                specification.  These can then be viewed in sequence.
  1449.  
  1450.                The file operation commands are:
  1451.  
  1452.                     <ALT m>
  1453.  
  1454.                          Enter a new file matchlist specification.  A text
  1455.                          entry window is generated for entering the match
  1456.                          list specification.  For example:
  1457.  
  1458.                               d:\dos\!*.com !*.exe
  1459.  
  1460.                          specifies all the files in the D:\DOS directory
  1461.                          except for the executable programs.
  1462.  
  1463.                          The default specification placed within the text
  1464.                          entry window is "*".  Simply enter <RETURN> if you
  1465.                          wish to see all of the files, or overwrite this
  1466.                          with a particular matchlist specification.  The
  1467.                          window will scroll horizontally if required for a
  1468.                          long specification.
  1469.  
  1470.                          If the completed matchlist specification refer-
  1471.                          ences a single file, the file is opened
  1472.                          immediately and the text presented on the VIEW
  1473.                          screen.  If the matchlist corresponds to no files,
  1474.                          an error tone is issued and the screen is blanked.
  1475.                          Re-enter <ALT m> and the correct specification.
  1476.                          If the matchlist specification corresponds to two
  1477.                          or more files a file list window is generated -
  1478.                          see the <ALT f> explanation below.
  1479.  
  1480.                     <ALT f>
  1481.  
  1482.                          Display an alphabetical list of all files matching
  1483.                          the current matchlist specification.  Cursor
  1484.                          within this list to the desired file and enter
  1485.                          <RETURN>.  This closes the current file, if any,
  1486.                          and opens the new one.  Newly opened files always
  1487.                          start with line one, column one in the upper left
  1488.                          corner of the screen.
  1489.  
  1490.                     <keypad +>, <keypad ->
  1491.  
  1492.                          Open the next, or previous, file respectively in
  1493.                          the current file list; that is the files refer-
  1494.                          enced by the last matchlist specification.
  1495.  
  1496. BTS Utilities User Manual                                    (VIEW) Page 30
  1497. ___________________________________________________________________________
  1498.  
  1499.  
  1500.                GOTO AND SEARCH OPERATIONS
  1501.                __________________________
  1502.  
  1503.                These commands are provided to move through the file in a
  1504.                non-sequential manner. In particular:
  1505.  
  1506.  
  1507.                     <ALT g>  or  + - or any numeric character
  1508.  
  1509.                          Goto an absolute or relative line within the file.
  1510.                          A text entry window is provided for entering the
  1511.                          line number.  Enter a specific number to request
  1512.                          an absolute line number.  Precede the number with
  1513.                          a + or - to indicate a displacement relative to
  1514.                          the current position.  For example, enter "3,000"
  1515.                          to go to line 3000, and enter "+50" to move 50
  1516.                          lines past the current position.  Following the
  1517.                          Goto operation for an absolute line number the
  1518.                          destination line is highlighted.  For relative
  1519.                          amounts the screen is simply shifted the
  1520.                          appropriate distance (i.e. no highlighting
  1521.                          changes).
  1522.  
  1523.  
  1524.                     <ALT s>  or  any alphabetical or punctuation character
  1525.  
  1526.                          Search for a text string.  Enter the desired
  1527.                          string into the text entry window.  By default,
  1528.                          the search is case insensitive and in the forward
  1529.                          direction, but these attributes can be altered
  1530.                          through the popup menu described in the next
  1531.                          section.  The text entry window will scroll
  1532.                          horizontally for long search strings.
  1533.  
  1534.                          If the requested text is located, it will be
  1535.                          highlighted on the screen.  If the text is found,
  1536.                          but lies horizontally outside the currently
  1537.                          visible columns, the entire line will be
  1538.                          highlighted (that is rather than scrolling the
  1539.                          screen horizontally to the search text).
  1540.  
  1541.  
  1542.                     <RETURN>  or  <F3>
  1543.  
  1544.                          Repeat the last Search operation.  As for the
  1545.                          initial search, if there is a highlighted entry on
  1546.                          the screen, the search starts there - otherwise
  1547.                          from the top screen line for forward searches or
  1548.                          the bottom screen line for backward searches.  The
  1549.                          search will not cycle through from the end of the
  1550.                          file back to the beginning - use <HOME>.  The
  1551.                          search string is retained across multiple file
  1552.                          openings.
  1553.  
  1554.  
  1555. BTS Utilities User Manual                                    (VIEW) Page 31
  1556. ___________________________________________________________________________
  1557.  
  1558.  
  1559.                     <CTRL-RETURN>
  1560.  
  1561.                          Repeat the last Search operation, but in the
  1562.                          opposite direction.
  1563.  
  1564.                The Goto and Search functions have the normal single key
  1565.                activation code, but also respond to any of the ASCII keys
  1566.                entered through the keyboard.  For shortcut purposes it is
  1567.                assumed that all numeric keys are intended for the <ALT g>
  1568.                Goto function, and the other non CTRL and ALT keys are
  1569.                destined for the <ALT s> Search function.  Obviously search
  1570.                operations can start with a leading number; but for these
  1571.                explicitly enter the <ALT s> and then the numeric text.
  1572.  
  1573.  
  1574.  
  1575.                POPUP MENU
  1576.                __________
  1577.  
  1578.                The popup menu, initiated by </>, provides a means for
  1579.                setting search direction and search case sensitivity flags,
  1580.                and an alternative mechanism for many of the functions
  1581.                described above.  The popup menu command entries are shown
  1582.                below, with the equivalent keyboard key function at the
  1583.                right:
  1584.  
  1585.                     o  display file list          <ALT f>
  1586.  
  1587.                     o  enter file matchlist spec  <ALT m>
  1588.  
  1589.                     o  open next file             <keypad +>
  1590.  
  1591.                     o  open previous file         <keypad ->
  1592.  
  1593.                     o  search for text string     <ALT s>
  1594.  
  1595.                     o  set search direction
  1596.  
  1597.                     o  set search case sensitivity
  1598.  
  1599.  
  1600.  
  1601. EXAMPLE:       To start the VIEW program in 43 line mode, using the banner
  1602.                name and color information from the c:\bin\personal.cfg
  1603.                configuration file, to start with a filelist of all files
  1604.                with an extension starting with the letter "p" expect for
  1605.                files with a .pag extension, and to exit immediately on
  1606.                <ESC> without a verification window:
  1607.  
  1608.                     view -V43 *.p* !*.pag -XI @c:\bin\personal.cfg
  1609.  
  1610.  
  1611.  
  1612. BTS Utilities User Manual                                      (WI) Page 32
  1613. ___________________________________________________________________________
  1614.  
  1615.  
  1616. 10.0 WI                                                                V1.4
  1617. ___________________________________________________________________________
  1618.  
  1619.     PURPOSE:   A multi-drive file find utility that is capable of carrying
  1620.                out an arbitrary action on the located file(s).
  1621.  
  1622.     USAGE:     wi -? [drives:][path]matchlist -[pP] -d#:# -s#:# -d -s -h
  1623.                   -t -D -S -H -T -[oO] -c[#] -C[#] -x[#l#cdst] :DOS-command
  1624.  
  1625.                where (all arguments are optional):
  1626.  
  1627.                     -?        provide two complete help screens for the WI
  1628.                               command.  The first covers the search
  1629.                               criteria arguments, while the second page
  1630.                               covers arguments for the associated DOS
  1631.                               command operation.
  1632.  
  1633.                     [drives:] specification for the drives to be included
  1634.                               in the search.  This defaults to the current
  1635.                               drive if not specified.  Multiple drives can
  1636.                               be specified by concatenating the letters
  1637.                               together (e.g. cde:), by *: to indicate all
  1638.                               fixed drives, or ?: to indicate all drives,
  1639.                               whether removable or not.
  1640.  
  1641.  
  1642.                     [path]    the root of the branch (on each drive) the
  1643.                               search is to start from.  This defaults to
  1644.                               the root of the drive(s) if not stated.  To
  1645.                               start the search from the current directory,
  1646.                               enter the path as ".\".
  1647.  
  1648.  
  1649.                     matchlist
  1650.                               any valid file matchlist specification.  For
  1651.                               example:
  1652.  
  1653.                                    *.doc *.txt *.asc !known.doc
  1654.  
  1655.                               If no matchlist is provided, but a search
  1656.                               criteria is, such as a date range or file
  1657.                               attribute, then a default *.* matchlist is
  1658.                               assumed.  For example, to find all files on
  1659.                               the current drive that were modified today:
  1660.  
  1661.                                    wi -d=0
  1662.  
  1663.  
  1664.                     -p / -P   specify if there should be a Pause after each
  1665.                               complete output screen.  Default is pause:
  1666.                               -P.
  1667.  
  1668.                     -d#:#     date range search criteria in days since last
  1669.                               modification.  The #:# range specifies the
  1670.                               first through the last day to be included.
  1671. BTS Utilities User Manual                                      (WI) Page 33
  1672. ___________________________________________________________________________
  1673.  
  1674.  
  1675.                               If the first # is omitted, it is assumed to
  1676.                               be today (0), if the last # is omitted it is
  1677.                               assumed to be infinity (at least before the
  1678.                               1980 start date where life as we know it
  1679.                               began).  Commas can be inserted anywhere in
  1680.                               the numbers as desired.  As a shorthand, a
  1681.                               single specific day can be specified as =#.
  1682.                               For example:
  1683.  
  1684.                                    today's files
  1685.                                         -d0:0    or   -d:0    or   -d=0
  1686.  
  1687.                                    within the last 4 days
  1688.                                         -d:4
  1689.  
  1690.                                    more than one week old
  1691.                                         -d8:
  1692.  
  1693.                     -s#:#     file size range search criteria in bytes.
  1694.                               Commas can be inserted for legibility.  The
  1695.                               range encoding is as above for dates, for
  1696.                               example, files of 1Mb or more are specified
  1697.                               as:
  1698.                                         -s1,000,000:
  1699.  
  1700.                     -d        include subdirectory names in the search
  1701.                               operation.  Normally subdirectory names are
  1702.                               not included in the match operation.  The
  1703.                               term "file" as used here and subsequently,
  1704.                               infers files and directories if the -d
  1705.                               argument is set.  The size specification does
  1706.                               not apply to directories.
  1707.  
  1708.                     -s        include system files in the search.  Normally
  1709.                               system files are not examined.
  1710.  
  1711.                     -h        include hidden files in the search.  Normally
  1712.                               hidden files are not examined.
  1713.  
  1714.                     -t        display summary total at the completion of
  1715.                               the command.  The summary identifies the
  1716.                               number of files and or directories, and the
  1717.                               total number of bytes involved.  Without the
  1718.                               -t argument, this is only shown if more than
  1719.                               5 files are selected.
  1720.  
  1721.                     -D        include ONLY subdirectory names.  That is,
  1722.                               ignore files during the selection process.
  1723.  
  1724.                     -S        include ONLY files that have the system
  1725.                               attribute set.  Ignore normal files.
  1726.  
  1727.                     -H        include ONLY files that have the hidden
  1728.                               attribute set.  Ignore normal files.
  1729.  
  1730. BTS Utilities User Manual                                      (WI) Page 34
  1731. ___________________________________________________________________________
  1732.  
  1733.  
  1734.                     -T        display ONLY the summary total.  Do not show
  1735.                               status lines for each selected file.
  1736.  
  1737.                     -o / -O   display Output lines for selected files and
  1738.                               the summary. The -o option is similar to -T
  1739.                               except that even the summary is inhibited
  1740.                               from being displayed.  The default is to
  1741.                               always issue status lines and the summary if
  1742.                               there are more than 5 selected files: -O.
  1743.                               This command has no affect on the text issued
  1744.                               from programs initiated through the DOS-
  1745.                               command facility.
  1746.  
  1747.  
  1748.                Whereas the preceding arguments covered the search
  1749.                criteria and the presentation of the selected files, the
  1750.                following arguments determine the operations to be
  1751.                done with the selected file when the match occurs.
  1752.  
  1753.  
  1754.                     -c[#]     on completion of the search operation, change
  1755.                               directories to the drive:path associated with
  1756.                               the #th selected match.  If the # argument is
  1757.                               not specified, the first match is assumed.
  1758.  
  1759.                     -C[#]     as per -c[#] except change directories
  1760.                               immediately when the #th match occurs, rather
  1761.                               than searching for additional matches.
  1762.  
  1763.                     -x[#l#cdst]
  1764.                               execution flags for the processing of the
  1765.                               DOS-command line:
  1766.  
  1767.                                 #  maximum number of matches that are to
  1768.                                    occur before stopping.  The default is
  1769.                                    effectively infinity (don't stop due to
  1770.                                    matches).
  1771.  
  1772.                                 l# maximum number of directory levels to
  1773.                                    search.  To search only the current
  1774.                                    directory, specify -xl1
  1775.  
  1776.                                 c  before performing the command, tempor-
  1777.                                    arily change the current directory to
  1778.                                    the directory containing the selected
  1779.                                    file.
  1780.  
  1781.                                 d  only execute the command once per
  1782.                                    directory.  The command will be carried
  1783.                                    out for each directory containing at
  1784.                                    least one selection.  File variables
  1785.                                    within the command, such as $f (see
  1786.                                    below), refer to the directory
  1787.                                    containing the selections and not to the
  1788.                                    selections themselves.
  1789. BTS Utilities User Manual                                      (WI) Page 35
  1790. ___________________________________________________________________________
  1791.  
  1792.  
  1793.                                 s  show each command line executed.  Each
  1794.                                    command line, with expanded arguments,
  1795.                                    is displayed, preceded by "WI".
  1796.  
  1797.                                 t  test mode - display the command line(s)
  1798.                                    that would be executed, as for the -xs
  1799.                                    option, but don't actually execute it.
  1800.  
  1801.                     :DOS-command
  1802.                               a valid DOS command, complete with any
  1803.                               desired arguments.  The command line is
  1804.                               executed for each matched file.  In the same
  1805.                               manner as for ToolBOX and the MAKEBAT
  1806.                               programs, the command line can contain
  1807.                               embedded variables for matched filenames:
  1808.  
  1809.                                    $D  current drive letter
  1810.                                    $P  current path
  1811.                                    $d  matched drive letter
  1812.                                    $p  matched path
  1813.                                    $n  filename (to 8 characters)
  1814.                                    $x  extension(to 3 characters)
  1815.                                    $f  minimized matched filename  (for
  1816.                                        required portions of $d:$p\$n.$x)
  1817.                                    $$  a single $
  1818.  
  1819.                               If the match corresponds to a directory (e.g.
  1820.                               d:\dos), then:
  1821.  
  1822.                                    $p    corresponds to      \dos
  1823.  
  1824.                                               while
  1825.  
  1826.                                    $f    corresponds to      \dos\.
  1827.  
  1828.                               Whatever output is generated from the [DOS-
  1829.                               command] itself is not included in the
  1830.                               pagination calculation for the -P screen
  1831.                               pause option.  Text lines will likely scroll
  1832.                               off the top of the screen.
  1833.  
  1834.                The factory default is equivalent to: wi -PO
  1835.  
  1836.                For the WI arguments:
  1837.  
  1838.                     o case is only significant for options that have
  1839.                       different interpretations for the upper and lower
  1840.                       case settings.
  1841.  
  1842.                     o order is not significant, except that if it exists,
  1843.                       the :[DOS-command] argument must be the last argument
  1844.                       on the command line.
  1845.  
  1846.                     o there is no ambiguity among the arguments if they are
  1847.                       properly stated.
  1848. BTS Utilities User Manual                                      (WI) Page 36
  1849. ___________________________________________________________________________
  1850.  
  1851.  
  1852.     SUMMARY:   The wi utility searches through drives or a directory branch
  1853.                for files and/or directories that fulfill a given set of
  1854.                criteria.  As described in detail above, the search criteria
  1855.                can be any of:
  1856.  
  1857.                     o matchlist specification for filenames
  1858.  
  1859.                     o file type attributes for directories, hidden, or
  1860.                       system.
  1861.  
  1862.                     o days since last modification
  1863.  
  1864.                     o file size in bytes
  1865.  
  1866.                The search is conducted through a specified directory and
  1867.                then all of its descendant subdirectories.  Normally the
  1868.                search starts from the root directory, yielding a search of
  1869.                all directories on the disk.  Disk drives to be searched can
  1870.                be stated individually or by referring to all disk drives,
  1871.                or to all non-removable disk drives.
  1872.  
  1873.                For each file (or directory) that is selected based on the
  1874.                search criteria, a status line is generated on the screen.
  1875.  
  1876.                Optionally, it is possible to carry out an action on each of
  1877.                these selected files.  This could be as simple as changing
  1878.                the current directory to that of the selected file, or as
  1879.                complicated as can be stated within a DOS command line.
  1880.                Variables are available for referencing the selected files
  1881.                from within the DOS command line.
  1882.  
  1883.                For details refer to the argument descriptions in the USAGE
  1884.                section above.
  1885.  
  1886.  
  1887.     EXAMPLE:   1) Find all the .DAT files on the hard disks and get a total
  1888.                   of the disk space they occupy (sample output shown for
  1889.                   this example only):
  1890.  
  1891.                     wi *:*.dat
  1892.  
  1893.                    18,944  15Nov91 01:39  C:\BIN\BTS-TREE.DAT
  1894.                       672  16Oct89 07:46  C:\DEV\TBOX\MAKETEST\LINES.DAT
  1895.                   232,232  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\CONTRY.DAT
  1896.                       578  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\BUBBLE.DAT
  1897.                    47,288  11Aug91 00:33  D:\PKG\PAF\PAF-DATA\INDIV2.DAT
  1898.                     2,192  12Sep88 10:38  D:\PKG\QB\QCARDS.DAT
  1899.                    25,268  21Dec90 00:00  D:\PKG\PCPLUS\MODEMS.DAT
  1900.                   302,848  18Jly90 12:00  E:\PKG\WINWORD\SYN-AM.DAT
  1901.                   188,584  18Jly90 12:00  E:\PKG\WINWORD\LEX-AM.DAT
  1902.                    24,072  18Jly90 12:00  E:\PKG\WINWORD\HYPH.DAT
  1903.                       338  18Jly90 12:00  E:\PKG\WINWORD\PCW-RTF.DAT
  1904.                10 files (633,707 bytes)
  1905.  
  1906.  
  1907. BTS Utilities User Manual                                      (WI) Page 37
  1908. ___________________________________________________________________________
  1909.  
  1910.  
  1911.                2) Find all the hidden files on the current drive and then
  1912.                   change directories to where the first one occurred:
  1913.  
  1914.                     wi /H -c
  1915.  
  1916.  
  1917.                3) Find and view the contents of all the README.DOC files on
  1918.                   all disks:
  1919.  
  1920.                     wi ?:readme.doc /xop :view $f
  1921.  
  1922.  
  1923.                4) Delete all temporary .BAK, .TMP, and .OLD files on all
  1924.                   hard disks that are at least 2 days old:
  1925.  
  1926.                     wi *:*.bak *.tmp *.old -d2: -p :del $f
  1927.  
  1928.  
  1929.                5) Copy all hard drive files that were modified today
  1930.                   (except .BAK files) to an archive directory on drive a:
  1931.  
  1932.                     wi -d=0 !*.bak :copy $f a:\save\
  1933.  
  1934.  
  1935.                6) While crude, the following example removes all empty
  1936.                   directories on the current drive.  This is done by
  1937.                   attempting to remove all directories, which only works
  1938.                   for the ones that happen to be empty.  An error message
  1939.                   is in fact generated for each directory regardless; by
  1940.                   DOS if the directory is not empty and cannot be deleted,
  1941.                   and by WI if it was deleted since WI can then no longer
  1942.                   find it to search as a descendant.  This will only remove
  1943.                   one level of empty directories at a time.  Repeat for
  1944.                   successive levels.
  1945.  
  1946.                     wi -D -p :rmdir $p
  1947.  
  1948.  
  1949.                7) For the current directory and all of it's descendant
  1950.                   directories, do a DOS dir command, if and only if, there
  1951.                   is at least one .WK1 file.  Redirect all the DIR command
  1952.                   outputs (inhibit all WI output) to a data file for later
  1953.                   examination.  Note the redirection occurs for the WI
  1954.                   command as a whole, not for the individual [DOS-
  1955.                   command]'s.
  1956.  
  1957.                     wi .\*.wk1 -xd  -p -o :dir $p >wk1dirs.txt
  1958.  
  1959.                               or equivalently
  1960.  
  1961.                     wi .\*.wk1 -xdc -p -o :dir    >wk1dirs.txt
  1962.  
  1963.  
  1964.  
  1965.  
  1966. BTS Utilities User Manual                                      (WI) Page 38
  1967. ___________________________________________________________________________
  1968.  
  1969.  
  1970. APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY
  1971.  
  1972.  
  1973.     NOTE:   -? is a valid request for help for all command line programs.
  1974.  
  1975.  
  1976.           ────────────────────────────────────────────────────────────
  1977.  
  1978.  
  1979.     USAGE: BTSPATCH program[.exe] [=new-parameter-list]
  1980.  
  1981.         WHERE:
  1982.  
  1983.           program[.exe]            any Binary Toolshed program.
  1984.  
  1985.           [=new-parameter-list]    valid set of arguments for specified
  1986.                                    program.
  1987.  
  1988.         DEFAULTS:
  1989.  
  1990.           none
  1991.  
  1992.         EXAMPLE:
  1993.  
  1994.           btspatch wi =-t
  1995.  
  1996.           ────────────────────────────────────────────────────────────
  1997.  
  1998.  
  1999.     USAGE: DIRS [path] [-l#] [-pP] [-sS]
  2000.  
  2001.         WHERE:
  2002.  
  2003.           [path]    root directory of branch to be displayed.
  2004.           -l#       maximum reported subdirectory level(s).
  2005.           -pP       pause after output screens.
  2006.           -sS       inhibit Summary report.
  2007.  
  2008.         DEFAULTS:
  2009.  
  2010.           dirs .\ -l7 -P -S
  2011.  
  2012.         EXAMPLE:
  2013.  
  2014.           dirs \workdirs -l1 /p
  2015.  
  2016.  
  2017.           ────────────────────────────────────────────────────────────
  2018.  
  2019. BTS Utilities User Manual                                      (WI) Page 39
  2020. ___________________________________________________________________________
  2021.  
  2022.  
  2023.     USAGE: DRIVES [-f]
  2024.  
  2025.         WHERE:
  2026.  
  2027.           -f        read floppy drive media.
  2028.  
  2029.         DEFAULTS:
  2030.  
  2031.           drives
  2032.  
  2033.         EXAMPLE:
  2034.  
  2035.           drives -f
  2036.  
  2037.  
  2038.           ────────────────────────────────────────────────────────────
  2039.  
  2040.  
  2041.     USAGE: MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  2042.  
  2043.         WHERE:
  2044.  
  2045.           [d:][path]matchlist      file selection criteria.
  2046.           [@template.ext]          template text file.  If absent, input
  2047.                                    assumed from STDIN.  Contents of temp-
  2048.                                    late file copied to STDOUT for each
  2049.                                    matched file (except for lines preceded
  2050.                                    with [ and ] which are copied as the
  2051.                                    leading and trailing lines of STDOUT
  2052.                                    respectively).  Variables within the
  2053.                                    template file are substituted for as
  2054.                                    follows based on the matched name:
  2055.  
  2056.                                         $D  current drive letter
  2057.                                         $P  current path
  2058.                                         $d  matched drive letter
  2059.                                         $p  matched path
  2060.                                         $n  filename (to 8 chars)
  2061.                                         $x  extension (to 3 chars)
  2062.                                         $f  minimized file name
  2063.                                             (for $d:$p\$n.$x)
  2064.                                         $$  a single $
  2065.  
  2066.                                    Command line arguments substituted for:
  2067.  
  2068.                                         $1  arg1
  2069.                                         $2  arg2
  2070.                                          . . .
  2071.  
  2072.           [-arg1]...               Substituted into template file as above.
  2073.            
  2074.  
  2075.         DEFAULTS:
  2076.  
  2077.           none
  2078. BTS Utilities User Manual                                      (WI) Page 40
  2079. ___________________________________________________________________________
  2080.  
  2081.  
  2082.  
  2083.         EXAMPLE:
  2084.  
  2085.           makebat *.prn @fprint.tem >fprint.bat
  2086.  
  2087.                WHERE FPRINT.TEM contains:
  2088.  
  2089.                [
  2090.                [ SAMPLE TO PRINT AND DELETE FILES
  2091.                [
  2092.                copy $f prn:
  2093.                del $f
  2094.  
  2095.  
  2096.           ────────────────────────────────────────────────────────────
  2097.  
  2098.  
  2099.     USAGE : ONPATH matchlist [=setVariable] ...
  2100.  
  2101.         WHERE:
  2102.  
  2103.           matchlist      specification for files to be located on the PATH.
  2104.  
  2105.           [=setVariable] alternative set variable [to PATH] defining the
  2106.                          directories to be searched.
  2107.  
  2108.         DEFAULTS:
  2109.  
  2110.           none
  2111.  
  2112.         EXAMPLE:
  2113.  
  2114.           onpath wp*
  2115.  
  2116.  
  2117.           ────────────────────────────────────────────────────────────
  2118.  
  2119.  
  2120. BTS Utilities User Manual                                      (WI) Page 41
  2121. ___________________________________________________________________________
  2122.  
  2123.  
  2124.     USAGE : TOASCII <pcchars.in >ascii.out
  2125.  
  2126.         WHERE:
  2127.  
  2128.           <              STDIN input file containing IBM PC 8 bit
  2129.                          characters.
  2130.  
  2131.           >              STDOUT output file containing STDIN file
  2132.                          filtered to standard ASCII scharacter values.
  2133.         DEFAULTS:
  2134.  
  2135.           none
  2136.  
  2137.         EXAMPLE:
  2138.  
  2139.           toascii <pcchars.in >ascii.out
  2140.  
  2141.  
  2142.           ────────────────────────────────────────────────────────────
  2143.  
  2144.  
  2145.     USAGE : TREE  path  @cfgfile -Dpath  -V[b m s c e v]  -C[m c g]
  2146.                   -X[a#][c][dD][i][t#][uU]
  2147.  
  2148.         WHERE (all arguments are optional):
  2149.  
  2150.           path      display drive and/or directory.
  2151.           -@cfgfile configuration file pathname.
  2152.           -Dpath    directory for BTS-TREE.DAT.
  2153.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2154.           -C        color table selection for Monochrome/Color/Grayscale.
  2155.           -X        execution flags
  2156.                        a#     Audio, WHERE # enables error sounds for
  2157.                               1(border) + 2(syntax) + 4(execution)
  2158.                               +8(automatic directory tree update).
  2159.                        c      force Current drive tree initialization.
  2160.                        d / D  use Datafile.
  2161.                        i      force Initialization of all drive trees.
  2162.                        t#     set filelist update Time (tenths/sec).
  2163.                        uU     Update datafile enable.
  2164.  
  2165.         DEFAULTS:
  2166.  
  2167.           tree .\ -Xa7Dt7U
  2168.  
  2169.         EXAMPLE:
  2170.  
  2171.           tree d:\workarea @d:\bin\mycolors.tem -Xt12
  2172.  
  2173. BTS Utilities User Manual                                      (WI) Page 42
  2174. ___________________________________________________________________________
  2175.  
  2176.  
  2177.     USAGE : VIEW [d:][path\]matchList @cfgfile -V [b m s c e v] [25 43 50]
  2178.                  -C[m c g] -X[a#][cC][iI][rR]
  2179.  
  2180.         WHERE (all arguments are optional):
  2181.  
  2182.  
  2183.           [d:][path\]matchList  filename specifications...
  2184.           @cfgfile  full configuration pathname specification.
  2185.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2186.                     plus setting for number of display lines 25/43/50.
  2187.           -C        color table selection for Monochrome/Color/Grayscale.
  2188.           -X        execution flags
  2189.                         a#     Audio, WHERE # enables error sounds for
  2190.                                1(border) + 2(syntax) + 4(execution).
  2191.                         c / C  make text searches Case sensitive.
  2192.                         i / I  exit Immediately without prompt.
  2193.                         r / R  Restore DOS screen on exit.
  2194.  
  2195.         DEFAULTS:
  2196.  
  2197.           view -Xa7cir)
  2198.  
  2199.         EXAMPLE:
  2200.  
  2201.           view -V43 *.doc *.txt -XI @c:\bin\personal.cfg
  2202.  
  2203.  
  2204.           ────────────────────────────────────────────────────────────
  2205.  
  2206. BTS Utilities User Manual                                      (WI) Page 43
  2207. ___________________________________________________________________________
  2208.  
  2209.  
  2210.  
  2211.     USAGE: WI [drives:][path]matchlist  [-flags]  [:DOS-command]
  2212.  
  2213.         [drives:]        single (a:), multiple (cdf:), all (?:) or all
  2214.                          hard (*:) drive selection.
  2215.         [path]matchlist  file selection criteria.
  2216.         [flags]
  2217.  
  2218.           -?    extended help (including auxiliary DOS command).
  2219.           -pP   pause after output screens.
  2220.           -d#:# select files within range days old.
  2221.           -s#:# select files within range size bytes.
  2222.           -d    include subdirectory names.
  2223.           -s    include system files.
  2224.           -h    include hidden files.
  2225.           -t    display summary total
  2226.           -D    include ONLY subdirectory names.
  2227.           -S    include ONLY system files.
  2228.           -H    include ONLY hidden files.
  2229.           -T    display ONLY summary total.
  2230.           -oO   issue Output lines.
  2231.  
  2232.           -c[#] change dir to #th match on completion (DEFAULTS is first).
  2233.           -C[#] change dir immediately on #th match.
  2234.           -x    execution flags
  2235.                     #    maximum number of matches.
  2236.                     l#   maximum number of directory search levels.
  2237.                     c    change dir before executing cmd line.
  2238.                     d    execute command once per directory.
  2239.                     s    show each command line executed.
  2240.                     t    test mode - just display command lines.
  2241.  
  2242.           [DOS-command]  DOS command line including embedded variables for
  2243.                          matched filenames:
  2244.  
  2245.                               $D  current drive letter
  2246.                               $P  current path
  2247.                               $d  matched drive letter
  2248.                               $p  matched path
  2249.                               $n  filename (to 8 characters)
  2250.                               $x  extension(to 3 characters)
  2251.                               $f  minimized matched filename
  2252.                                      (for $d:$p\$n.$x)
  2253.                               $$  a single $
  2254.  
  2255.  
  2256.         EXAMPLE:
  2257.  
  2258.           wi dc:*.tmp *.old *.pag -d3: -opxt :del $f
  2259.  
  2260.  
  2261.           ────────────────────────────────────────────────────────────
  2262.  
  2263.  
  2264.  
  2265.